﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace ShareForum.Core
{
    public class ShareForumContext
    {
        private SPWeb _web;

        private ShareForumContext(SPWeb web)
        {
            _web = web;
        }

        public IEnumerable<Category> Categories
        {
            get
            {
                return null;
            }
        }

        public static ShareForumContext Current
        {
            get
            {
                return new ShareForumContext(SPContext.Current.Web);
            }
        }

        public static ShareForumContext GetContext(SPWeb web)
        {
            return new ShareForumContext(web);
        }
    }
}
